package com.shaonianyou.component;

import java.util.Collection;

import lombok.Getter;
import lombok.Setter;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

@Setter
@Getter
public class SecurityUser extends User {

	/**
	 * 
	 */
	private static final long serialVersionUID = 587749189081399336L;

	private String custId;

	private String mobile;

	private String name;

	private String email;

	private String wechat;

	private String expireAt;

	private String status;

	private String noticeType;

	private String payFee;

	public SecurityUser(String username, String password, boolean enabled, boolean accountNonExpired,
			boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
		// TODO Auto-generated constructor stub
	}

	public SecurityUser(String username, String password, Collection<? extends GrantedAuthority> authorities,
			String custId, String mobile, String name, String email, String wechat, String expireAt, String status,
			String noticeType, String payFee) {
		super(username, password, authorities);
		this.custId = custId;
		this.mobile = mobile;
		this.name = name;
		this.email = email;
		this.wechat = wechat;
		this.expireAt = expireAt;
		this.status = status;
		this.noticeType = noticeType;
		this.payFee = payFee;
	}


}
